import { SwipeableFlatList, FlatList } from 'react-native'
import React from 'react'

/*
 感谢这位大神
 https://blog.csdn.net/qq_22329521/article/details/81987595
*/

export default class FixSwipeadFlatList extends SwipeableFlatList {
    render(): React.Node {
        return (
            <FlatList
                {...this.props}
                ref={ref => {
                    this._flatListRef = ref;
                }}
                extraData={this.state}
                onScroll={this._onScroll}
                renderItem={this._renderItem}
            />
        );
    }
}
